#   Copyright (C) 2009 Hugh Nelson.
#   This file is part of Libbarteta.
#
#   Libbarteta is free software: you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#
#   Libbarteta is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with Libbarteta.  If not, see <http://www.gnu.org/licenses/>.

AC_PREREQ(2.61)
AC_INIT( [libbarteta], [1.1], [libbarteta@hughnelson.com])
AC_CONFIG_SRCDIR([src/barteta.c])
AC_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL

# Checks for libraries.
PKG_CHECK_MODULES(DEPS, libxml-2.0)
AC_SUBST( DEPS_CFLAGS )
AC_SUBST( DEPS_LIBS )

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.
AC_HEADER_STDC

AM_INIT_AUTOMAKE
AC_PROG_LIBTOOL
AC_CONFIG_FILES([Makefile src/Makefile libbarteta.pc])
AC_OUTPUT
